package ro.ase.catalog.security.dao;

import ro.ase.catalog.beans.SchoolClass;
import ro.ase.catalog.beans.Student;
import ro.ase.catalog.beans.Teacher;
import ro.ase.catalog.beans.User;
import ro.ase.catalog.beans.dto.AverageDTO;
import ro.ase.catalog.beans.dto.StudentDTO;
import ro.ase.catalog.beans.dto.TeacherDisciplineStudentsDTO;
import ro.ase.catalog.dao.IGenericDAO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Ioana
 * Date: 5/12/14
 * Time: 2:32 PM
 * To change this template use File | Settings | File Templates.
 */
    public interface IStudentDAO extends IGenericDAO<Student, Integer> {
    public Boolean saveTransactionalStudent(User user, Student student );
    public List<StudentDTO> findByName(String searchName, int start, int limit);
    public List<TeacherDisciplineStudentsDTO> findAllStudentsByClass(Teacher teacher, SchoolClass schoolClass);
    public  TeacherDisciplineStudentsDTO getAvgForStudentAtDiscipline(Teacher teacher, Student studentList);
    public Student getStudentByUserName(String loginName);

    List<AverageDTO> getAverageByClasses(SchoolClass classMaster);
}
